<?php

/**
 * This form accepts data for login.
 */
class Form_Login extends Zend_Form 
{

    /**
     * Initializes Elements and their Validators.
     */
    public function init()
    {
        $this->addElements(array(
            array('text', 'email', array(
                'label' => 'email',
                'validators' => array(
                    'emailAddress'
                ),
                'required' => true
            )),
            array('password', 'password', array(
                'label' => 'password',
                'required' => true
            )),
            array('submit', 'login', array(
                'ignore' => true
            ))
        ));
    }
    
}
